import { ref, computed } from "vue";
const useOne = (data) => {
  const one = ref(1);
  const callFoo = () => {
    console.log(one);
  };
  const foo = computed(() => {
    return one.value + "foo";
  });

  return {
    one,
    foo,
  };
};

const useTwo = (data) => {
  const one = ref(1);
  const callFoo = () => {
    console.log(one);
  };
  const foo = computed(() => {
    return one.value + "foo";
  });

  return {
    one,
    foo,
  };
};